<?php
defined('BY_JYA') or exit('error');
$result=array();
$after_auth_url=$_SESSION['after_auth_url']?:$_AR['siteurl'];
if($_SESSION['after_auth_url']){
		unset($_SESSION['after_auth_url']);
}
if($_RQ['op']=='base'){
	$result=model('core/fans_api')->up_openinfo('base',$_RQ['code']);
}
if($_RQ['op']=='info'){
	$result=model('core/fans_api')->up_openinfo('info',$_RQ['code']);
}
header('location:'.$after_auth_url);
exit ('获取粉丝openid成功！');
